//
//  PreferenceManager.h
//  FileLockerPro
//
//  Created by SDSL-3 on 7/11/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#define LOGIN_ERROR     @"Wrong code"
#define LOCKED          @"Application access has been locked. Please try again in %.f seconds."
#define EARLY           @"Please try again in %.f seconds time."

@interface PreferenceManager : NSObject


+(int)getNumTries;
+(void)increaseNumTries;
+(void)resetNumTries;
+(int)appLocked;
+(void)lockApp;
+(void)unlockApp;

+(int)config_getInterval;
+(int)config_getChance;
+(int)config_getLock;
+(void)config_setInterval:(int) n;
+(void)config_setChance:(int) n;
+(void)config_setLock:(int) n;

+(NSDate *)getLastTryTime;
+(void)setLastTryTime;

+(NSTimeInterval)intervalSinceLastTry;
+(NSTimeInterval)lockTimeRemaining;
+(NSTimeInterval)retryTimeRemaining;


+(NSString *)getPass;
+(void)setPass:(NSString *)pass;
+(NSString *)login:(NSString *)pass;





@end
